net/netip.Addr.addr (field)
38 uses
net/netip (current package)
netip.go#L54: addr uint128
netip.go#L94: addr: uint128{0, 0xffff00000000 | uint64(addr[0])<<24 | uint64(addr[1])<<16 | uint64(addr[2])<<8 | uint64(addr[3])},
netip.go#L104: addr: uint128{
netip.go#L362: return uint8(ip.addr.lo >> ((3 - i) * 8))
netip.go#L368: return uint8(*(ip.addr.halves()[(i/8)%2]) >> ((7 - i%8) * 8))
netip.go#L374: return uint16(*(ip.addr.halves()[(i/4)%2]) >> ((3 - i%4) * 16))
netip.go#L427: hi1, hi2 := ip.addr.hi, ip2.addr.hi
netip.go#L434: lo1, lo2 := ip.addr.lo, ip2.addr.lo
netip.go#L467: return ip.Is6() && ip.addr.hi == 0 && ip.addr.lo>>32 == 0xffff
netip.go#L550: return ip.addr.hi == 0 && ip.addr.lo == 1
netip.go#L569: return ip.addr.hi>>(64-8) == 0xff // ip.v6(0) == 0xff
netip.go#L693: ip.addr = ip.addr.and(mask6(effectiveBits))
netip.go#L703: byteorder.BePutUint64(a16[:8], ip.addr.hi)
netip.go#L704: byteorder.BePutUint64(a16[8:], ip.addr.lo)
netip.go#L713: byteorder.BePutUint32(a4[:], uint32(ip.addr.lo))
netip.go#L729: byteorder.BePutUint32(ret[:], uint32(ip.addr.lo))
netip.go#L733: byteorder.BePutUint64(ret[:8], ip.addr.hi)
netip.go#L734: byteorder.BePutUint64(ret[8:], ip.addr.lo)
netip.go#L742: ip.addr = ip.addr.addOne()
netip.go#L744: if uint32(ip.addr.lo) == 0 {
netip.go#L749: if ip.addr.isZero() {
netip.go#L761: if uint32(ip.addr.lo) == 0 {
netip.go#L764: } else if ip.addr.isZero() {
netip.go#L767: ip.addr = ip.addr.subOne()
netip.go#L1014: byteorder.BePutUint32(b, uint32(ip.addr.lo))
netip.go#L1018: byteorder.BePutUint64(b[:8], ip.addr.hi)
netip.go#L1019: byteorder.BePutUint64(b[8:], ip.addr.lo)
netip.go#L1415: return uint32((ip.addr.lo^p.ip.addr.lo)>>((32-p.Bits())&63)) == 0
netip.go#L1420: return ip.addr.xor(p.ip.addr).and(mask6(p.Bits())).isZero()
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |